from odoo import api, fields, models, _
import logging
from odoo.exceptions import UserError

logger = logging.getLogger(__name__)


class Date_info(models.Model):
    _name = 'date.info'
    _description = 'date_info'

    name = fields.Char(
        '培训人'
    )
    schedule_date = fields.Datetime('培训开始时间', required=True)
    duration = fields.Float('持续时间', default=1.5)
